import http from "@/utils/http";

// 列表信息
export const databaseList = (merchantsId)=> http.get(`/adminapi/merchants/database/list/${merchantsId}`)

// 详情
export const databaseDetail = (id)=> http.get(`/adminapi/merchants/database/detail/${id}`)

// 新增
export const databaseAdd = (data)=> http.post('/adminapi/merchants/database/add', data)

// 编辑
export const databaseEdit = (data)=> http.post('/adminapi/merchants/database/edit', data)

// 启用/禁用
export const databaseEnabled = (id, enabled)=> http.post(`/adminapi/merchants/database/enabled/${id}/${enabled}`)

// 删除
export const databaseDelete = (id)=> http.delete(`/adminapi/merchants/database/delete/${id}`)

// 发布
export const databaseRelease = (id)=> http.post(`/adminapi/merchants/database/release/${id}`)

// 商户资源库明细
export const databaseMxPage = (params)=> http.get('/adminapi/merchants/database/mx/page', params)
